<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<CheckDetail> list = (List<CheckDetail>)request.getAttribute("list");
	CheckDataForm form = (CheckDataForm)request.getAttribute("command");
%>
<div class="main">
	<div class="oaTable">
<table class="tableList">
	<tbody>
		<tr id="tableHeader">
			<th style="width: 10%">工号</th>
			<th style="width: 10%">姓名</th>
			<th style="width: 10%">部门</th>
			<th style="width: 10%">所属公司</th>
			<th style="width: 12%">打卡日期</th>
			<th style="width: 8%">打卡1</th>
			<th style="width: 8%">打卡2</th>
			<th style="width: 8%">打卡3</th>
			<th style="width: 8%">打卡4</th>
			<th style="width: 8%">打卡5</th>
			<th style="width: 8%">打卡6</th>			
		</tr>
		<%
			if (list != null && list.size() > 0) {
				for (CheckDetail data: list) {
		%>
						<tr>
							<td><%=data.getUserid() %></td>
							<td><%=data.getUsername()!=null?data.getUsername():"" %></td>
							<td><%=data.getDeptname()%></td>
							<td><%=data.getSitename() %></td>
							<td><%=data.getCheckdate()!=null?DateFormatUtils.format(data.getCheckdate(), "yyyy-MM-dd"):"" %></td>
							<td><%=data.getChecktime1()!=null?DateFormatUtils.format(data.getChecktime1(), "HH:mm"):"" %></td>
							<td><%=data.getChecktime2()!=null?DateFormatUtils.format(data.getChecktime2(), "HH:mm"):"" %></td>
							<td><%=data.getChecktime3()!=null?DateFormatUtils.format(data.getChecktime3(), "HH:mm"):"" %></td>
							<td><%=data.getChecktime4()!=null?DateFormatUtils.format(data.getChecktime4(), "HH:mm"):"" %></td>
							<td><%=data.getChecktime5()!=null?DateFormatUtils.format(data.getChecktime5(), "HH:mm"):"" %></td>
							<td><%=data.getChecktime6()!=null?DateFormatUtils.format(data.getChecktime6(), "HH:mm"):"" %></td>							
						</tr>
					<%
				}
			}
		
		%>
		        
	</tbody>
</table>
</div>
</div>
